3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and manipulate rotate transforms about a point. A rotate-about-point transform rotates an object about the x , y , or z axis by a specified number of radians at an arbitrary point in space. You can use macros to convert radians to degrees if you prefer to work with degrees instead of radians. See the chapter "Mathematical Utilities" for more information.
You can use the Q3RotateAboutPointTransform_New function to create a new rotate-about-point transform.
TQ3TransformObject Q3RotateAboutPointTransform_New (
const TQ3RotateAboutPointTransformData *data);
The Q3RotateAboutPointTransform_New function returns, as its function result, a reference to a new transform object of type kQ3TransformTypeRotateAboutPoint using the data passed in the data parameter. The data you pass is copied into internal QuickDraw 3D data structures. If QuickDraw 3D cannot allocate memory for those structures, Q3RotateAboutPointTransform_New returns the value NULL .
You can use the Q3RotateAboutPointTransform_Submit function to submit a rotate-about-point transform without creating an object or allocating memory.
TQ3Status Q3RotateAboutPointTransform_Submit (
const TQ3RotateAboutPointTransformData *data,
TQ3ViewObject view);
You can use the Q3RotateAboutPointTransform_GetData function to query the private data stored in a rotate-about-point transform.
TQ3Status Q3RotateAboutPointTransform_GetData (
TQ3TransformObject transform,
TQ3RotateAboutPointTransformData *data);
You can use the Q3RotateAboutPointTransform_SetData function to set new private data for a rotate-about-point transform.
TQ3Status Q3RotateAboutPointTransform_SetData (
TQ3TransformObject transform,
const TQ3RotateAboutPointTransformData *data);
You can use the Q3RotateAboutPointTransform_GetAxis function to get the axis of a rotate-about-point transform.
TQ3Status Q3RotateAboutPointTransform_GetAxis (
TQ3TransformObject transform,
TQ3Axis *axis);
You can use the Q3RotateAboutPointTransform_SetAxis function to set the axis of a rotate-about-point transform.
TQ3Status Q3RotateAboutPointTransform_SetAxis (
TQ3TransformObject transform,
TQ3Axis axis);
You can use the Q3RotateAboutPointTransform_GetAngle function to get the angle of a rotate-about-point transform.
TQ3Status Q3RotateAboutPointTransform_GetAngle (
TQ3TransformObject transform,
float *radians);
You can use the Q3RotateAboutPointTransform_SetAngle function to set the angle of a rotate-about-point transform.
TQ3Status Q3RotateAboutPointTransform_SetAngle (
TQ3TransformObject transform,
float radians);
You can use the Q3RotateAboutPointTransform_GetAboutPoint function to get the point of rotation of a rotate-about-point transform.
TQ3Status Q3RotateAboutPointTransform_GetAboutPoint (
TQ3TransformObject transform,
TQ3Point3D *about);
You can use the Q3RotateAboutPointTransform_SetAboutPoint function to set the point of rotation of a rotate-about-point transform.
TQ3Status Q3RotateAboutPointTransform_SetAboutPoint (
TQ3TransformObject transform,
const TQ3Point3D *about);
Previous | QD3D Book | Overview | Chapter Contents | Next |